package com.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Matchtype implements Serializable {
    private String mtno;

    private String mtname;

    private String mtdesc;

    private Integer mtiscross;

    private String mtlogo;

    private static final long serialVersionUID = 1L;

    public String getMtno() {
        return mtno;
    }

    public void setMtno(String mtno) {
        this.mtno = mtno;
    }

    public String getMtname() {
        return mtname;
    }

    public void setMtname(String mtname) {
        this.mtname = mtname;
    }

    public String getMtdesc() {
        return mtdesc;
    }

    public void setMtdesc(String mtdesc) {
        this.mtdesc = mtdesc;
    }

    public Integer getMtiscross() {
        return mtiscross;
    }

    public void setMtiscross(Integer mtiscross) {
        this.mtiscross = mtiscross;
    }

    public String getMtlogo() {
        return mtlogo;
    }

    public void setMtlogo(String mtlogo) {
        this.mtlogo = mtlogo;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Matchtype other = (Matchtype) that;
        return (this.getMtno() == null ? other.getMtno() == null : this.getMtno().equals(other.getMtno()))
            && (this.getMtname() == null ? other.getMtname() == null : this.getMtname().equals(other.getMtname()))
            && (this.getMtdesc() == null ? other.getMtdesc() == null : this.getMtdesc().equals(other.getMtdesc()))
            && (this.getMtiscross() == null ? other.getMtiscross() == null : this.getMtiscross().equals(other.getMtiscross()))
            && (this.getMtlogo() == null ? other.getMtlogo() == null : this.getMtlogo().equals(other.getMtlogo()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMtno() == null) ? 0 : getMtno().hashCode());
        result = prime * result + ((getMtname() == null) ? 0 : getMtname().hashCode());
        result = prime * result + ((getMtdesc() == null) ? 0 : getMtdesc().hashCode());
        result = prime * result + ((getMtiscross() == null) ? 0 : getMtiscross().hashCode());
        result = prime * result + ((getMtlogo() == null) ? 0 : getMtlogo().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", mtno=").append(mtno);
        sb.append(", mtname=").append(mtname);
        sb.append(", mtdesc=").append(mtdesc);
        sb.append(", mtiscross=").append(mtiscross);
        sb.append(", mtlogo=").append(mtlogo);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}